package com.litong.rms.action;

import java.util.List;

import com.litong.rms.bean.Function;
import com.litong.rms.bean.Module;
import com.litong.rms.util.AuthUtil;


public class ModuleAuthAction extends BaseAction{

	/**
	 * 
	 */
	private static final long serialVersionUID = -4811016494613669989L;
	
	private Module module;
	private String moduleId;
	private List<Function> functionList;
	public String execute(){
		module = new Module();
		module.setModuleId(Integer.parseInt(moduleId));
		//functionList = new ArrayList
		setFunctionList(AuthUtil.getFunctionList(module));
		return SUCCESS;
		
	}
	
	public Module getModule() {
		return module;
	}
	public void setModule(Module module) {
		this.module = module;
	}
	public String getModuleId() {
		return moduleId;
	}
	public void setModuleId(String moduleId) {
		this.moduleId = moduleId;
	}

	public void setFunctionList(List<Function> functionList) {
		this.functionList = functionList;
	}

	public List<Function> getFunctionList() {
		return functionList;
	}

}
